MODBUS2 communication driver for Transfix controller

 

MODBUS2 communication driver for Transfix controller is the driver to communicate with Transfix  controller of Kelman Ltd.

  

1. Read Settings

 

<Figure 1> is MODBUS2 communication driver read setting examples.

<Figure 1>  Read setting example of MODBUS2 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

In protocol option part, you can set the following: whether to check CRC(1 = check, 0 = No check), bit write value that corresponds to ON(Default = 65280), protocol type(1 = IP protocol, 0 = Serial protocol), bit write value that corresponds to OFF(Default = 0), whether to use WORD size(1 = Not using WORD size, 0 = using WORD size, Default = 0), whether to use multi write(0 = Not using multi write, 1 = using multi write, Default = 0), state value storage position for comparison of data(input WORD memory address, Defualt = 1000). Each argument  is a comma-delimited.

 

Note) MODBUS IP protocol is used in systems that are connected by Ethernet(TCP/IP or UDP/IP).

 

MODBUS2 communication driver read schedule

Read schedule setting parameters are as follows:

1)     STATION – Input equipment ID between 0 ~ 255

2)     Read Command – Read command.

3 – Reading the data of WORD unit.

3D – Reading the data of DWORD unit ( WORD order : LO, HI ).

3d – Reading the data of DWORD unit ( WORD order : HI, LO ).

3lD, 3LD – Reading the data of 8 BYTE unit ( WORD order : LO, HI ).

3ld, 3Ld – Reading the data of 8 BYTE unit ( WORD order : HI, LO ).

3M – Reading the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : LO, HI ).

3m – Reading the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : HI, LO ).

3lM, 3LM – Reading the special data[HI WORD x 10000 + LO WORD] of 8 BYTE unit ( WORD order : LO, HI ).

3lm, 3Lm – Reading the special data[HI WORD x 10000 + LO WORD] of 8 BYTE unit ( WORD order : HI, LO ).

3s – Reading the special data[16 BYTE BCD ASCII].

3F – Reading the data of FLOAT unit ( WORD order : LO, HI ).

3F2 – Reading the data of FLOAT unit ( WORD order : LO, HI ).

3f – Reading the data of FLOAT unit ( WORD order : HI, LO ).

3f2 – Reading the data of FLOAT unit ( WORD order : HI, LO ).

1X, 2X – Reading the data of BIT unit ( 1xxxx, 2xxxx Modbus address ).

1XB, 2XB – Reading the data of BIT unit ( 1xxxx, 2xxxx Modbus address ).

3B – Reading the data of BYTE unit. 

TRANS – Historical Records reading of Transfix controller.

3)     Read Start Address – Input address of equipment. ( Modbus address - 1 )

when 'TRANS' read command = reading Record index.

4)     Save Start Address for Communication Server – Input Memory Start Address which will store the data from equipment.

5)     Read Size – Input the read size of data.

3 –  WORD unit,

3D, 3d, 3M, 3m, 3F, 3F2, 3f, 3f2 – 2 WORD unit,

3LD, 3ld, 3LM, 3lm – 4 WORD unit.

3s – 8 WORD unit,

1X, 2X – WORD unit,

1XB, 2XB – BIT unit ( 1 ~ 15 = 1 WORD, 16 ~ 31 = 2 WORD, ¡¦).

3B – BYTE unit,

TRANS - fixed to 226 byte.

 

Read schedule example)

READ,      1,  3,    0,      0,   32,

DWORD, 1, 3d,  200,  0,   50,

DWORD, 1, 3d,  300, 50,   50,

DWORD, 1, 3F, 2000,  0,   50,

 

<Table 1> is data saving address and contents for  Historical Records( TRANS command ).

The readed data of TRANS read command store the same data in WORD, DWORD, FLOAT memory, but the data format are different.

Data saving address Contents

Rnage

Start addr + 0 Number

0 ~ 7FFFh

Start addr + 1 Oil Source

0 ~ 2 = Oil Source A ~ C

Start addr + 2 Year

0 ~ 9999

Start addr + 3 Month

1 ~ 12

Start addr + 4 Day

1 ~ 31

Start addr + 5 Hour

0 ~ 23

Start addr + 6 Min

0 ~ 59

Start addr + 7 ~ 8 PGA/Host Firmware Version

16BIT(WORD) DATA

Start addr + 9 ~ 10 Alarm Conc/ROC Status
Start addr + 11 Alarm Output Status
Start addr + 12 Measurement Flags
Start addr + 13 PGA Error State
Start addr + 14 Error Codes

32BIT(DWORD) DATA

Start addr + 15 Measurement Duration(sec)

WORD

Start addr + 16 Spare

fixed to 0 (WORD)

Start addr + 17 H2

Float °ª,

PPM

Start addr + 18 CO2
Start addr + 19 CO
Start addr + 20 C2H4
Start addr + 21 C2H6
Start addr + 22 CH4
Start addr + 23 C2H2
Start addr + 24 H2O
Start addr + 25 O2
Start addr + 26 TDCG
Start addr + 27 N2
Start addr + 28 TDG
Start addr + 29 Oil Pressure

Float value, kPa

Start addr + 30 Oil Temperature

Float value, ¡É

Start addr + 31 Ambient Temperature
Start addr + 32 Normalization Temperature
Start addr + 33 ~ 38 AI 1 ~ 6

Float value, user defined unit

Start addr + 39 ~ 42 Spare

Float value, fixed to 0

Start addr + 43 ~ 56 Reserved 1 ~ 14

Float value

Start addr + 57 ~ 63 Spare

Float value

Start addr + 64 Spare

WORD value

<Table 1> Data saving address and contents for  Historical Records( TRANS command )

If you click the icon ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: 2 in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.

<Figure 2> Example of MODBUS2 communication driver¡¯s Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>.

Also, in Modus Protocol Option shown in <Figure 2>, you can set set the following: whether to check CRC(1 = check, 0 = No check), bit write value that corresponds to ON(Default = 65280), protocol type(1 = IP protocol, 0 = Serial protocol), bit write value that corresponds to OFF(Default = 0), whether to use WORD size(1 = Not using WORD size, 0 = using WORD size, Default = 0), whether to use multi write(0 = Not using multi write, 1 = using multi write, Default = 0), state value storage position for comparison of data(input WORD memory address, Defualt = 1000).

<Figure 3> Example of MODBUS2 comunication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Write settings

You can set Transfix controller by using 'write settings'. 

 

Digital Write

Digital write and analog write have the same setting parameters except output value. 

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             modbus station number.

serial = 1 ~ 247,

ethernet( TCP/IP, ... ) = 100, 255, ...

3)  ADDRESS          writing modbus address. ( Modbus address - 1 )

 'TRANS' write command = reading Record index.

4)  Extra1                  write command

16 – Writing the data of WORD unit.

16D – Writing the data of DWORD unit ( WORD order : LO, HI ).

16d – Writing the data of DWORD unit ( WORD order : HI, LO ).

16lD, 16LD – Writing the data of 8 BYTE unit ( WORD order : LO, HI ).

16ld, 16Ld – Writing the data of 8 BYTE unit ( WORD order : LO, HI ).

16M – Writing the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : LO, HI ).

16m – Writing the special data[HI WORD x 10000 + LO WORD] of DWORD unit ( WORD order : HI, LO ).

16lM, 16LM – Writing the special data[HI WORD x 10000 + LO WORD] of 8 BYTE unit ( WORD order : LO, HI ).

16lm, 16Lm – Writing the special data[HI WORD x 10000 + LO WORD] of 8 BYTE unit ( WORD order : HI, LO ).

16s – Writing the special data[16 BYTE BCD ASCII].

16F – Writing the data of FLOAT unit ( WORD order : LO, HI ).

16F2 – Writing the data of FLOAT unit ( WORD order : LO, HI ).

16f – Writing the data of FLOAT unit ( WORD order : HI, LO ).

16f2 – Writing the data of FLOAT unit ( WORD order : HI, LO ).

16B – Writing the data of BYTE unit.

16H_TIME – transmit the current time of computer to HICM equipment. (You have to write 6 word one by one - year, month, day, hour, minute, second / only word write)

TRANS - Historical Records reading of Transfix controller.

5) Extra2                   readed data saving start address when TRANS write command. other command = don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0100, Extra1: 16,  Extra2 : 0

The setting parameter shown above is word unit write setting example for 100( 101 Modbus address ) address.

 

Write example 2)

PORT:0,  station:1, ADDRESS:5000, Extra1: 16d,  Extra2 : 0

The setting parameter shown above is double word unit write setting example for 5000( 5001 Modbus address ) address.

 

Write example 3)

PORT:0,  station:1, ADDRESS:0002, Extra1: TRANS,  Extra2 : 200

The setting parameter shown above is number 2 Historical Records reading example of Transfix controller.

After reading, the readed data save at 200 ~ 264 WORD, DWORD, FLOAT memory.